﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PUCIT.eFCS.Admin
{
    public partial class SectionView : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                LoadUsers();
        }

        private void LoadUsers()
        {
            DataAccess.Models.eFCS_FinalContext dbContxt = new DataAccess.Models.eFCS_FinalContext();
            var users = dbContxt.users.Where(x=> x.userName.Contains("pr")).ToList();
            rptUsers.DataSource = users;
            rptUsers.DataBind();
        }
    }
}